/*  Copyright (C) 2008  Alexander Blyzniuchenko (BlezAlex)

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/


using System;

namespace DC
{
    public class FoundFileEventArgs : EventArgs
    {
        private readonly string _nick;
        private readonly string _path;
        private readonly int _currentSlots;
        private readonly int _totalSlots;
        private readonly int _hubConnectionID;
        private readonly DcFile _file;

        public FoundFileEventArgs(DcFile file, string path,  string nick, int hubConnectionID, int currentSlots, int totalSlots)
        {
            _file = file;
            _nick = nick;
            _path = path;
            _hubConnectionID = hubConnectionID;
            _currentSlots = currentSlots;
            _totalSlots = totalSlots;
        }

        public DcFile File
        {
            get { return _file;  }   
        }

        public string Nick
        {
            get { return _nick; }
        }

        public int HubConnectionID
        {
            get { return _hubConnectionID; }
        }

        public string Path
        {
            get { return _path; }
        }

        public int CurrentSlots
        {
            get { return _currentSlots; }
        }

        public int TotalSlots
        {
            get { return _totalSlots; }
        }
    }
}
